var addPerson;
var addItem;

function openPersonForm()
{
	addPerson = window.open("new_person_form.html", "addPerson", "status=no, menubar=no, resizable=no, height=200, width=400");
}

function openItemForm()
{
	addItem = window.open("new_item_form.html", "addItem", "status=no, menubar=no, resizable=no, height=150, width=400");
}

function sendNewSoftRequest()
{
	var xmlDoc=load("data.xml");
	var newSoft = xmlDoc.createElement("software");
	var newItemTag = newSoft.appendChild("item_name");
	var newItemName = xmlDoc.createCDATASection(document.getElementById("form_item").innerHTML);
	newItemTag.appendChild(newItemName);
	var newOwnerTag = newSoft.appendChild("owner");
	var newOwnerName = xmlDoc.createCDATASection(document.getElementById("form_owner").innerHTML);
	newOwnerTag.appendChild(newOwnerName);
	addItem.close();
}